package main.java.game.command;

import main.java.game.Game;
import main.java.game.item.Shield;

public class BuyShield implements PlayerCommand {

	private Game game;
	private Shield shield;
	public BuyShield(Game game, Shield shield){
		this.game = game;
		this.shield = shield;
	}
	
	public void execute() {
		game.getPlayer().getShields().add(shield);
		game.getShields().remove(shield);

	}

}
